using System;
using System.Collections.Generic;
using System.Text;
using System.Web.UI.WebControls;


namespace ARF.Site.Solution
{
    public class WebPart : Microsoft.SharePoint.WebPartPages.WebPart
    {
        private ARF.Web.Controls.SiteQuery _query;
        private string _xslName;

        [Microsoft.SharePoint.WebPartPages.WebPartStorage(Microsoft.SharePoint.WebPartPages.Storage.Shared)]
        public string XslName
        {
            get { return _xslName; }
            set { _xslName = value; }
        }

        protected override void RenderWebPart(System.Web.UI.HtmlTextWriter output)
        {
            _query.RenderControl(output);
            base.RenderWebPart(output);
        }

        public override System.Web.UI.WebControls.WebParts.EditorPartCollection CreateEditorParts()
        {
            return base.CreateEditorParts();
        }

        protected override void CreateChildControls()
        {
            _query = new ARF.Web.Controls.SiteQuery();
            _query.Query = "<Where";
            _query.Xsl.XslName = _xslName;


            base.CreateChildControls();
        }

        void b_Click(object sender, EventArgs e)
        {
            

            throw new Exception("The method or operation is not implemented.");
        }
    }
}
